//
//  EtBlock.h
//  events
//
//  Created by movin on 2019/5/26.
//

#import <Foundation/Foundation.h>

@protocol EtModule;
@protocol EtDispatcher;

@protocol EtBlock <EtDispatcher>
@property (assign, nonatomic, readonly) bool stoped;
@property (copy, nonatomic, readonly) id<EtModule> module;

-(instancetype)initWidth:(id<EtModule>)module;

-(void)destroy;
-(void)start;
-(void)stop;

-(void)log:(NSString*)tag format:(NSString*)format, ... NS_REQUIRES_NIL_TERMINATION;
@end
